package com.yy.mapper;

import com.yy.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    ShoppingCart selectDish(ShoppingCart shoppingCart);

    void insertCart(ShoppingCart shoppingCart1);

    void updateShoppingCart(ShoppingCart shoppingCart);

    List<ShoppingCart> list(Long currentId);

    void delete(ShoppingCart cart);

    void deleteAll(Long userId);

    void insertBatch(List<ShoppingCart> shoppingCartList);
}
